package cn.edu.zut.salarymanagesystem.bean.pojo;

import java.util.Date;


public class Work extends WorkRecord {
    private Integer value = 0;
    private String uid = null;
    private Integer oid = 0;
    private Integer plus = 0;
    private String commentary;
    private Date time = null;

    public Work(String owner, Date time, String objectName, Integer number, Integer value, Integer valid, String commentary) {
        super(owner, time, objectName, number, value, valid, commentary);
    }
    public Work(){

    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    public String getUid() {
        return uid;
    }

    @Override
    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getPlus() {
        return plus;
    }

    public void setPlus(Integer plus) {
        this.plus = plus;
    }

    @Override
    public String getCommentary() {
        return commentary;
    }

    @Override
    public void setCommentary(String commentary) {
        this.commentary = commentary;
    }

    @Override
    public Date getTime() {
        return time;
    }

    @Override
    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Work{" +
                "value=" + value +
                ", uid=" + uid +
                ", oid=" + oid +
                ", plus=" + plus +
                ", commentary='" + commentary + '\'' +
                ", time=" + time +
                '}';
    }
}

